package com.siashan.unipay4j.ali;

import com.siashan.unipay4j.ali.conf.AliMchInfo;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.regex.Pattern;

/**
 * 支付宝支付配置信息
 * @author sias_han
 * @since v1.0.1
 */
@Data
@ConfigurationProperties(prefix = AliPayProperties.PREFIX)
public class AliPayProperties {

    /**
     * Prefix of {@link AliPayProperties}.
     */
    public static final String PREFIX = "siashan.unipay4j.ali";

    private static final Pattern PATTERN = Pattern.compile("-(\\w)");

    /**
     * 支付宝支付配置
     */
    private AliMchInfo config;

}
